package com.vastcom.sigma.admin.model;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Gys {
    private String gysid;
    private String mc;
    private String tel;
    private String lxr;
    private String yyzz;
    private String lb;

    @Id
    @Column(name = "gysid")
    public String getGysid() {
        return gysid;
    }

    public void setGysid(String gysid) {
        this.gysid = gysid;
    }

    @Basic
    @Column(name = "mc")
    public String getMc() {
        return mc;
    }

    public void setMc(String mc) {
        this.mc = mc;
    }

    @Basic
    @Column(name = "tel")
    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    @Basic
    @Column(name = "lxr")
    public String getLxr() {
        return lxr;
    }

    public void setLxr(String lxr) {
        this.lxr = lxr;
    }

    @Basic
    @Column(name = "yyzz")
    public String getYyzz() {
        return yyzz;
    }

    public void setYyzz(String yyzz) {
        this.yyzz = yyzz;
    }

    @Basic
    @Column(name = "lb")
    public String getLb() {
        return lb;
    }

    public void setLb(String lb) {
        this.lb = lb;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Gys gys = (Gys) o;

        if (gysid != null ? !gysid.equals(gys.gysid) : gys.gysid != null) return false;
        if (mc != null ? !mc.equals(gys.mc) : gys.mc != null) return false;
        if (tel != null ? !tel.equals(gys.tel) : gys.tel != null) return false;
        if (lxr != null ? !lxr.equals(gys.lxr) : gys.lxr != null) return false;
        if (yyzz != null ? !yyzz.equals(gys.yyzz) : gys.yyzz != null) return false;
        if (lb != null ? !lb.equals(gys.lb) : gys.lb != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = gysid != null ? gysid.hashCode() : 0;
        result = 31 * result + (mc != null ? mc.hashCode() : 0);
        result = 31 * result + (tel != null ? tel.hashCode() : 0);
        result = 31 * result + (lxr != null ? lxr.hashCode() : 0);
        result = 31 * result + (yyzz != null ? yyzz.hashCode() : 0);
        result = 31 * result + (lb != null ? lb.hashCode() : 0);
        return result;
    }
}
